#include "GameEngine/OGLConfig/Capabilities.h"

static bool isOGLESCapInit=false;

static int maxBonesPerVertex=0;
static char* extensionsSupported;

void initOGLESCap(){
	::glGetIntegerv(GL_MAX_VERTEX_UNITS_OES,&maxBonesPerVertex);
	extensionsSupported=(char *)glGetString(GL_EXTENSIONS);
}

int OGLESCapabilities::getMaxBonesPerVertex(){
	if(!isOGLESCapInit)
		initOGLESCap();
	return maxBonesPerVertex;
}

char * OGLESCapabilities::getExtensions(){
	if(!isOGLESCapInit)
		initOGLESCap();
	return extensionsSupported;
}
